[android] Activity group throw ActivityNotFoundException?

Posted by Mak Sing on Stack Overflow See other posts from Stack Overflow or by Mak Sing
Published on 2009-11-13T06:45:43Z Indexed on 2010/03/21 4:01 UTC
Read the original article Hit count: 783

Filed under:
|

Hi, I want to change the current activity inside a tab in a tab activity,

after some research, I know that I need to use activity group to go this.

then I created a new class extends ActivityGroup with the code below:

public class FavShop extends ActivityGroup{ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); LocalActivityManager m = getLocalActivityManager(); Intent i = new Intent(this, fav_shops.class); Window window = m.startActivity("favourite shop",i); setContentView(window.getDecorView()); } }

then I run the program, the program throw the ActivityNotFoundException when the intent for the tab is launched

I have no idea how to solve this problem, could anyone help me?

© Stack Overflow or respective owner

Related posts about android

Related posts about activity